// JavaScript Document
function site_url(url)
{
  return myData.baseUrl+url; 
}

function switchLang(lang,url) {
      html='<form name="switchLangFrm" id="switchLangFrm" method="post" action="'+url+'" style="display:none" >';
      html+='<input name="lang_code" value="'+lang+'" /></form>'
      $('body').append(html);
      $('#switchLangFrm').submit();
}

//logout
function logout(url) {
    html='<form name="logoutFrm" id="logoutFrm" method="post" action="'+url+'" style="display:none" >';
    html+='<input name="logout" value="1" /></form>'
    $('body').append(html);
    $('#logoutFrm').submit();
}

